home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-06
/
segue.exe
/
NSPLTABS.PRG
< prev
next >
Wrap
Text File
|
1991-10-29
|
1KB
|
44 lines
*.............................................................................
*
* Program Name: NSPLTABS.PRG Copyright: HRF Associates, Inc.
* Date Created: 10/29/11 Language: Clipper
* Time Created: 01:02:53 Author: Bob Fogle
*
*.............................................................................
* Supplemental SEGUE function for setting number of spaces for tab expansion.
* Functionally equivilent to N_SPLTABS function in NETLIB library.
*
FUNCTION NSPLTABS_
*Purpose : To specify banner page text.
*Usage : NSPLTABS_([<expN1>])
* :
* Where : <expN1> = Tab spaces [0..18]
* : 0 = no tab expansion
* :
PARAMETERS tabs
LOCAL mtabs
PRIVATE rtn :=0
do while .t.
* Check to make sure passed variable types are correct.
if valtype(tabs)<>'N' .AND. tabs<>nil
rtn = -101
exit
endi
* Set up defaults
mtabs = if(valtype(tabs)=='N',tabs,0)
* Get/Set tabs (form) number
if pcount()=0 // If no arguments, return current setting.
rtn = PRJBDFG(3) // Get Default Print Job Flags (Number of Tab spaces)
else
rtn = PRJBDFS(,,mtabs) // Set Default Print Job Flags (Number of Tab spaces)
endi
exit
endd
RETURN rtn